// 请求全国省市区数据
import {defineStore} from 'pinia'
import {ref} from 'vue'
import axios from "axios";

const useCity = defineStore('CityData', () => {
    const Data = ref([])

    const getCity = async () => {
        await axios.get('../json/CityData.json').then(res => {
            Data.value = res.data
        })
    }
    return {Data, getCity}
})

export default useCity